// triangle class


#ifndef TRIANGLE_H
#define TRIANGLE_H



#include "MyDisplay.h"
#include "Line.h"
#include "Matrix.h"
#include <fstream>
#include <math.h>

using namespace std;

class Triangle:public Line{

   private:
   int x1,y1;
   int x2,y2;
   int x3,y3;
   
   
   public:
   
   /**
       Default Constructor 
         initializes the three points to 
	 x1 = 100  y1 = 100
	 x2 = -100 y1 = 100
	 x3 = 0    x3 = 0  
   */
    Triangle();
    
    /**
         @parameter 
	     filename which contains the trianle points 
	     object of MyDispaly class which initialzes the  
    
    */
    Triangle(const char *fileName,const MyDisplay &another);
    
   /**
    
    
    */

        
    Triangle(const MyDisplay &another);
    
    /**
    
    
    */
    Triangle(const Matrix &R);
    
    ~Triangle();
    
    //draw rectangle
     bool draw();
     
     bool draw(const Matrix &T);
     
     bool draw(const int x1,const int y1,const int x2,const int y2,const int x3 = 0,const int y3 = 0);
     
     
    
 };
 
 #endif
 
 
